<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/17
 * Time: 17:48
 */

use think\Request;

$basename = Request::instance()->root;
if (pathinfo($basename, PATHINFO_EXTENSION) == 'php') {
    $basename = dirname($basename);
}

return [
    // 模板参数替换
    'view_replace_str' => [
        '__ROOT__' => $basename,
        '__STATIC__' => $basename . '/static/admin',
        '__LIB__' => $basename . '/static/admin/lib',
    ]
];